package com.ht.domain.bo;

import com.ht.domain.po.TbDepartment;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 科室表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Builder
public class TbDepartmentBO {

  private long id;
  private String departmentName;

  public TbDepartmentBO(TbDepartment tbDepartment) {
    this.id=tbDepartment.getId();
    this.departmentName= tbDepartment.getDepartmentName();
  }
}
